package cn.com.surker.base.strength.service;

import cn.com.surker.base.strength.entity.BaseStrengthLevelDosage;
import cn.com.surker.base.strength.vo.StrengthLevelDosageVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.com.surker.spring.RestResultDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
* <p>
    * 强度等级容重区间表 服务类
    * </p>
*
* @author admin
* @since 2025-01-13
*/
public interface BaseStrengthLevelDosageService extends IService<BaseStrengthLevelDosage> {

    /**
     * 查询基础标号容重区间值
     * @param orgId
     * @param type
     * @return
     */
    List<StrengthLevelDosageVo> findDosageVo(Long orgId, Integer type);

    /**
     * 新增容重区间信息
     * @param dosage
     * @return
     */
    RestResultDto saveDosage(BaseStrengthLevelDosage dosage);

    /**
     * 更新容重区间信息
     * @param dosage
     * @return
     */
    RestResultDto updateDosage(BaseStrengthLevelDosage dosage);

    /**
     * 更新状态
     * @param id
     * @param status
     * @param creator
     * @return
     */
    RestResultDto updateStatus(Long id, Integer status, String creator);

    RestResultDto saveDosageBatch(List<BaseStrengthLevelDosage> list);

}
